<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .wrap {
      width: 300px;
      height: 100px;
      border: 1px solid #333333;
      margin: 50px auto;
      overflow: hidden;
    }

    .son {
      width: 1800px;
      height: 100px;
      background-image: repeating-linear-gradient(45deg, #fff 0px, #ffffff 25px, #000000 25px, #000000 50px);
      animation: run 10s linear infinite;
    }

    @keyframes run {
      from {
        transform: translate(0px, 0px);
      }

      to {
        transform: translate(-1500px, 0px);
      }
    }
  </style>
</head>

<body>
  <div class="wrap">
    <div class="son"></div>
  </div>
</body>

</html>